package top.vanchor.flexible.config.initexception;

import lombok.Data;

/**
 * Created by IntelliJ IDEA.
 *
 * @Author : Ding
 * @create 2022/4/3 20:45
 */
@Data
public class BusinessException extends RuntimeException {

    private static final long serialVersionUID = 1L;

    private Integer code;

    public BusinessException(ErrorEnum errorEnum){
        super(errorEnum.getErrorMsg());
        this.code = errorEnum.getErrorCode();
    }
}
